package yuan.deng.mapper.store;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import yuan.deng.domain.store.Dept;
import java.util.List;

public interface DeptMapper {

    @Select("select dept_id,dept_name,parent_id,state from ss_dept")
    @Results(
            {@Result(id = true,column = "dept_id", property = "id"),
             @Result(column = "dept_name" , property = "deptName"),
             @Result(column = "parent_id" , property = "parentId")}
    )
    List<Dept> findAll();
}
